import os

from common.setting import ensure_path_sep
from utils.logging_tool.log_control import LogHandler

current_path = os.path.abspath(__file__)
current_dir = os.path.dirname(current_path)
path_list = current_path.split("\\")
dis_path = "\\".join(path_list[-2:-1])
INFO = LogHandler(ensure_path_sep(f"\\logs\\info-{dis_path}.log"), level='info')
ERROR = LogHandler(ensure_path_sep(f"\\logs\\error-{dis_path}.log"), level='error')
WARNING = LogHandler(ensure_path_sep(f'\\logs\\warning-{dis_path}.log'), level='warning')
#ERROR.logger.error(f"渠道id:{ordersourceid} ProductId: {ProductId}未同步到")
